<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
	pageEncoding="ISO-8859-1" import="java.sql.*" errorPage=""%>
<%@ page import="java.util.ArrayList"%>
<%@ page import="java.util.List"%>
<%@ page import="comits.business.tiers.metiers.ScanneProduits"%>
<%@ page import="java.util.Iterator"%>
<%@ page import="comits.web.client.servlets.demo.*"%>

<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="d"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn"%>
<%@ taglib uri="http://java.sun.com/jstl/core" prefix="c"%>
<%@ taglib uri="http://java.sun.com/jstl/sql" prefix="sql"%>

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<!-- DW6 -->
<head>
<!-- Copyright 2005 Macromedia, Inc. All rights reserved. -->
<title>Comits Web Client - Details de la commande</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<link rel="stylesheet" href="mm_entertainment.css" type="text/css" />
<link href="./Style.css" rel="stylesheet" type="text/css" />
</head>
<body>
	<table width="100%" border="0" cellspacing="0" cellpadding="0"
		align="center" border=1>
		<tr bgcolor="02021e">
			<td width="410" nowrap="nowrap"><img src="images/vin.jpg"
				width="400" height="140" border="0" />
			</td>
			<td colspan="2" valign="center" nowrap="nowrap" id="logo">OENOLOGISTICS</td>
		</tr>
		<tr>
			<td colspan="3" id="dateformat" height="30"><jsp:include
					page="menu.jsp" />
			</td>
		</tr>
		<tr>
			<td colspan="3" valign="top"><br />
					<form action="MenuDepotServlet" method="get">
						<table border="0" cellspacing="0" cellpadding="2" width="80%" align="center" border=1>
							<tr>
								<td>&nbsp;</td>
							</tr>
							<tr>
								<td class="subHeader" align="center">DETAILS DE LA COMMANDE</td>
							</tr>
							</br></br>
							<tr>		
							<table id="table" border="1" align="center">
								<tr BGCOLOR="02021e">
		        					<center><td><font color="orangered"><b>ID produit</b></font></td></center>
		        					<center><td><font color="orangered"><b>Numero commande</b></font></td></center>
		        					<center><td><font color="orangered"><b>Type produit</b></font></td></center>
		        					<center><td><font color="orangered"><b>Numero produit</b></font></td></center>
		        					<center><td><font color="orangered"><b>Quantite</b></font></td></center>
		        					<center><td><font color="orangered"><b>Numero site</b></font></td></center>
		        					<center><td><font color="orangered"><b>Site</b></font></td></center>
		        				</tr>
		        					<%
		        					List<ScanneProduits> lstScanProd = (List<ScanneProduits>) request.getAttribute("lstScanProd");
										for(int i = 0; i < lstScanProd.size(); i++)
										{
			        						ScanneProduits monProduit = new ScanneProduits();
			        						monProduit = lstScanProd.get(i);
		   							%>
		   						<tr>
		   							<td><%= monProduit.getIdProduit() %></td>
		   							<td><%= monProduit.getNumCmd() %></td>
		   							<td><%= monProduit.getTypeProduit() %></td>
		   							<td><%= monProduit.getnumPdt() %></td>
		   							<td><%= monProduit.getQte() %></td>
		   							<td><%= monProduit.getNumSite() %></td>
		   							<td><%= monProduit.getSite() %></td>
	        					</tr>
		        					<% 
 										}
 									%>
		      				</table>												
						</table>
					</form>				
				</td>
			</tr>
		</table>
</body>
</html>